import { InsertTextOperation } from "../../operations";

export default function withLogger(editor: any) {
    const apply = editor.apply.bind(editor)
    editor.apply = (operation: InsertTextOperation) => {
        apply(operation)
    }
    return editor
}